import sys
import os
from rich.console import Console

console = Console()
description = '[bold magenta]AI Machine & Deep Learning Lab.[/]'
options = '''
[bold green]Usage: [bold cyan]python %s [OPTIONS] [COMMANDS][/]

[bold green]Commands:[/]
    [bold cyan]cifar10_image[/]   CIFAR-10 image classification.
    [bold cyan]jaychou_lyrics[/]  Jay Chou lyrics generation.
    [bold cyan]mobile_price[/]    Mobile price prediction.

[bold green]Options:[/]
    [bold cyan]-l, --log[/]       Enable logging.
    [bold cyan]-h, --help[/]      Show this help message and exit.
''' % os.path.basename(sys.argv[0])
_license = '[bold green]License: [bold cyan]MIT[/]'


def print_help() -> None:
    if len(sys.argv) != 2 or sys.argv[1] in ['-h', '--help']:
        console.print(description)
        console.print(options)
        console.print(_license)
        sys.exit()
